package com.buaa.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

@Entity
@Table(name = "institution_att")
@DynamicInsert(true)
@DynamicUpdate(true)
public class InstitutionAtt implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "code", columnDefinition = "bigint(13)")
	private Long code; // 机构编码(1)

	@Column(name = "description", columnDefinition = "varchar(8000) default ''")
	private String description;// 单位简介(17)

	public InstitutionAtt() {
	}

	public InstitutionAtt(Long code, String description) {
		super();
		this.code = code;
		this.description = description;
	}

	public Long getCode() {
		return code;
	}

	public void setCode(Long code) {
		this.code = code;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	public String toString() {
		return "InstitutionAtt [code=" + code + ", description=" + description + "]";
	}

}
